package com.ys.entity.amazonorder;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_amazonorder].[dbo].TP_AmazonShopOrderLatest", catalog="Id")
public class TpAmazonShopOrderLatest extends BaseEntity<TpAmazonShopOrderLatest> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="SellerId", nameJava="sellerId", typeDataBase="varchar")
	private String sellerId;
	@YsField(nameDataBase="ShopId", nameJava="shopId", typeDataBase="bigint")
	private Long shopId;
	@YsField(nameDataBase="AmazonOrderId", nameJava="amazonOrderId", typeDataBase="varchar")
	private String amazonOrderId;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="PurchaseDate", nameJava="purchaseDate", typeDataBase="datetime")
	private Date purchaseDate;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="LastUpdateDate", nameJava="lastUpdateDate", typeDataBase="datetime")
	private Date lastUpdateDate;
	@YsField(nameDataBase="OrderStatus", nameJava="orderStatus", typeDataBase="varchar")
	private String orderStatus;
	@YsField(nameDataBase="CurrencyCode", nameJava="currencyCode", typeDataBase="varchar")
	private String currencyCode;
	@YsField(nameDataBase="Asin", nameJava="asin", typeDataBase="varchar")
	private String asin;
	@YsField(nameDataBase="SellerSku", nameJava="sellerSku", typeDataBase="varchar")
	private String sellerSku;
	@YsField(nameDataBase="FnSku", nameJava="fnSku", typeDataBase="varchar")
	private String fnSku;
	@YsField(nameDataBase="QuantityOrdered", nameJava="quantityOrdered", typeDataBase="decimal")
	private BigDecimal quantityOrdered;
	@YsField(nameDataBase="ItemTax", nameJava="itemTax", typeDataBase="decimal")
	private BigDecimal itemTax;
	@YsField(nameDataBase="ItemPrice", nameJava="itemPrice", typeDataBase="decimal")
	private BigDecimal itemPrice;
	@YsField(nameDataBase="OrderMoney", nameJava="orderMoney", typeDataBase="decimal")
	private BigDecimal orderMoney;
	@YsField(nameDataBase="SalesChannel", nameJava="salesChannel", typeDataBase="varchar")
	private String salesChannel;
	@YsField(nameDataBase="Taxes", nameJava="taxes", typeDataBase="decimal")
	private BigDecimal taxes;
	@YsField(nameDataBase="Price", nameJava="price", typeDataBase="decimal")
	private BigDecimal price;
	@YsField(nameDataBase="OrderAmount", nameJava="orderAmount", typeDataBase="decimal")
	private BigDecimal orderAmount;
	@YsField(nameDataBase="ExchangeRate1", nameJava="exchangeRate1", typeDataBase="decimal")
	private BigDecimal exchangeRate1;
	@YsField(nameDataBase="ExchangeRate2", nameJava="exchangeRate2", typeDataBase="decimal")
	private BigDecimal exchangeRate2;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="LocalDate", nameJava="localDate", typeDataBase="datetime")
	private Date localDate;
	@YsField(nameDataBase="ShopName", nameJava="shopName", typeDataBase="varchar")
	private String shopName;
	@YsField(nameDataBase="ProductCode", nameJava="productCode", typeDataBase="varchar")
	private String productCode;
	@YsField(nameDataBase="ProductName", nameJava="productName", typeDataBase="varchar")
	private String productName;
	@YsField(nameDataBase="CompanyCode", nameJava="companyCode", typeDataBase="varchar")
	private String companyCode;
	@YsField(nameDataBase="CompanyShortName", nameJava="companyShortName", typeDataBase="varchar")
	private String companyShortName;
	@YsField(nameDataBase="OperatorUserId", nameJava="operatorUserId", typeDataBase="varchar")
	private String operatorUserId;
	@YsField(nameDataBase="OperatorUserName", nameJava="operatorUserName", typeDataBase="varchar")
	private String operatorUserName;
	@YsField(nameDataBase="OperatorRoleName", nameJava="operatorRoleName", typeDataBase="varchar")
	private String operatorRoleName;
	@YsField(nameDataBase="OperatorOrgName", nameJava="operatorOrgName", typeDataBase="varchar")
	private String operatorOrgName;
	@YsField(nameDataBase="StateYoupin", nameJava="stateYoupin", typeDataBase="char")
	private String stateYoupin;
	@YsField(nameDataBase="StateJingpin", nameJava="stateJingpin", typeDataBase="char")
	private String stateJingpin;
	@YsField(nameDataBase="StateNoRule", nameJava="stateNoRule", typeDataBase="tinyint")
	private Integer stateNoRule;
	@YsField(nameDataBase="FulfillmentChannel", nameJava="fulfillmentChannel", typeDataBase="varchar")
	private String fulfillmentChannel;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpAmazonShopOrderLatest setId(Long id) {
		this.id = id;
		return this;
	}
	public String getSellerId() {
		return sellerId;
	}
	public TpAmazonShopOrderLatest setSellerId(String sellerId) {
		this.sellerId = sellerId;
		return this;
	}
	public Long getShopId() {
		return shopId;
	}
	public TpAmazonShopOrderLatest setShopId(Long shopId) {
		this.shopId = shopId;
		return this;
	}
	public String getAmazonOrderId() {
		return amazonOrderId;
	}
	public TpAmazonShopOrderLatest setAmazonOrderId(String amazonOrderId) {
		this.amazonOrderId = amazonOrderId;
		return this;
	}
	public Date getPurchaseDate() {
		return purchaseDate;
	}
	public TpAmazonShopOrderLatest setPurchaseDate(Date purchaseDate) {
		this.purchaseDate = purchaseDate;
		return this;
	}
	public Date getLastUpdateDate() {
		return lastUpdateDate;
	}
	public TpAmazonShopOrderLatest setLastUpdateDate(Date lastUpdateDate) {
		this.lastUpdateDate = lastUpdateDate;
		return this;
	}
	public String getOrderStatus() {
		return orderStatus;
	}
	public TpAmazonShopOrderLatest setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
		return this;
	}
	public String getCurrencyCode() {
		return currencyCode;
	}
	public TpAmazonShopOrderLatest setCurrencyCode(String currencyCode) {
		this.currencyCode = currencyCode;
		return this;
	}
	public String getAsin() {
		return asin;
	}
	public TpAmazonShopOrderLatest setAsin(String asin) {
		this.asin = asin;
		return this;
	}
	public String getSellerSku() {
		return sellerSku;
	}
	public TpAmazonShopOrderLatest setSellerSku(String sellerSku) {
		this.sellerSku = sellerSku;
		return this;
	}
	public String getFnSku() {
		return fnSku;
	}
	public TpAmazonShopOrderLatest setFnSku(String fnSku) {
		this.fnSku = fnSku;
		return this;
	}
	public BigDecimal getQuantityOrdered() {
		return quantityOrdered;
	}
	public TpAmazonShopOrderLatest setQuantityOrdered(BigDecimal quantityOrdered) {
		this.quantityOrdered = quantityOrdered;
		return this;
	}
	public BigDecimal getItemTax() {
		return itemTax;
	}
	public TpAmazonShopOrderLatest setItemTax(BigDecimal itemTax) {
		this.itemTax = itemTax;
		return this;
	}
	public BigDecimal getItemPrice() {
		return itemPrice;
	}
	public TpAmazonShopOrderLatest setItemPrice(BigDecimal itemPrice) {
		this.itemPrice = itemPrice;
		return this;
	}
	public BigDecimal getOrderMoney() {
		return orderMoney;
	}
	public TpAmazonShopOrderLatest setOrderMoney(BigDecimal orderMoney) {
		this.orderMoney = orderMoney;
		return this;
	}
	public String getSalesChannel() {
		return salesChannel;
	}
	public TpAmazonShopOrderLatest setSalesChannel(String salesChannel) {
		this.salesChannel = salesChannel;
		return this;
	}
	public BigDecimal getTaxes() {
		return taxes;
	}
	public TpAmazonShopOrderLatest setTaxes(BigDecimal taxes) {
		this.taxes = taxes;
		return this;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public TpAmazonShopOrderLatest setPrice(BigDecimal price) {
		this.price = price;
		return this;
	}
	public BigDecimal getOrderAmount() {
		return orderAmount;
	}
	public TpAmazonShopOrderLatest setOrderAmount(BigDecimal orderAmount) {
		this.orderAmount = orderAmount;
		return this;
	}
	public BigDecimal getExchangeRate1() {
		return exchangeRate1;
	}
	public TpAmazonShopOrderLatest setExchangeRate1(BigDecimal exchangeRate1) {
		this.exchangeRate1 = exchangeRate1;
		return this;
	}
	public BigDecimal getExchangeRate2() {
		return exchangeRate2;
	}
	public TpAmazonShopOrderLatest setExchangeRate2(BigDecimal exchangeRate2) {
		this.exchangeRate2 = exchangeRate2;
		return this;
	}
	public Date getLocalDate() {
		return localDate;
	}
	public TpAmazonShopOrderLatest setLocalDate(Date localDate) {
		this.localDate = localDate;
		return this;
	}
	public String getShopName() {
		return shopName;
	}
	public TpAmazonShopOrderLatest setShopName(String shopName) {
		this.shopName = shopName;
		return this;
	}
	public String getProductCode() {
		return productCode;
	}
	public TpAmazonShopOrderLatest setProductCode(String productCode) {
		this.productCode = productCode;
		return this;
	}
	public String getProductName() {
		return productName;
	}
	public TpAmazonShopOrderLatest setProductName(String productName) {
		this.productName = productName;
		return this;
	}
	public String getCompanyCode() {
		return companyCode;
	}
	public TpAmazonShopOrderLatest setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
		return this;
	}
	public String getCompanyShortName() {
		return companyShortName;
	}
	public TpAmazonShopOrderLatest setCompanyShortName(String companyShortName) {
		this.companyShortName = companyShortName;
		return this;
	}
	public String getOperatorUserId() {
		return operatorUserId;
	}
	public TpAmazonShopOrderLatest setOperatorUserId(String operatorUserId) {
		this.operatorUserId = operatorUserId;
		return this;
	}
	public String getOperatorUserName() {
		return operatorUserName;
	}
	public TpAmazonShopOrderLatest setOperatorUserName(String operatorUserName) {
		this.operatorUserName = operatorUserName;
		return this;
	}
	public String getOperatorRoleName() {
		return operatorRoleName;
	}
	public TpAmazonShopOrderLatest setOperatorRoleName(String operatorRoleName) {
		this.operatorRoleName = operatorRoleName;
		return this;
	}
	public String getOperatorOrgName() {
		return operatorOrgName;
	}
	public TpAmazonShopOrderLatest setOperatorOrgName(String operatorOrgName) {
		this.operatorOrgName = operatorOrgName;
		return this;
	}
	public String getStateYoupin() {
		return stateYoupin;
	}
	public TpAmazonShopOrderLatest setStateYoupin(String stateYoupin) {
		this.stateYoupin = stateYoupin;
		return this;
	}
	public String getStateJingpin() {
		return stateJingpin;
	}
	public TpAmazonShopOrderLatest setStateJingpin(String stateJingpin) {
		this.stateJingpin = stateJingpin;
		return this;
	}
	public Integer getStateNoRule() {
		return stateNoRule;
	}
	public TpAmazonShopOrderLatest setStateNoRule(Integer stateNoRule) {
		this.stateNoRule = stateNoRule;
		return this;
	}
	public String getFulfillmentChannel() {
		return fulfillmentChannel;
	}
	public TpAmazonShopOrderLatest setFulfillmentChannel(String fulfillmentChannel) {
		this.fulfillmentChannel = fulfillmentChannel;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpAmazonShopOrderLatest setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpAmazonShopOrderLatest setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpAmazonShopOrderLatest setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpAmazonShopOrderLatest tpAmazonShopOrderLatest(
		String sellerId,
		Long shopId,
		String amazonOrderId,
		Date purchaseDate,
		Date lastUpdateDate,
		String orderStatus,
		String currencyCode,
		String asin,
		String sellerSku,
		String fnSku,
		BigDecimal quantityOrdered,
		BigDecimal itemTax,
		BigDecimal itemPrice,
		BigDecimal orderMoney,
		String salesChannel,
		BigDecimal taxes,
		BigDecimal price,
		BigDecimal orderAmount,
		BigDecimal exchangeRate1,
		BigDecimal exchangeRate2,
		Date localDate,
		String shopName,
		String productCode,
		String productName,
		String companyCode,
		String companyShortName,
		String operatorUserId,
		String operatorUserName,
		String operatorRoleName,
		String operatorOrgName,
		String stateYoupin,
		String stateJingpin,
		Integer stateNoRule,
		String fulfillmentChannel,
		Integer status
			) {
		TpAmazonShopOrderLatest entity = new TpAmazonShopOrderLatest();
		entity.setSellerId(sellerId);
		entity.setShopId(shopId);
		entity.setAmazonOrderId(amazonOrderId);
		entity.setPurchaseDate(purchaseDate);
		entity.setLastUpdateDate(lastUpdateDate);
		entity.setOrderStatus(orderStatus);
		entity.setCurrencyCode(currencyCode);
		entity.setAsin(asin);
		entity.setSellerSku(sellerSku);
		entity.setFnSku(fnSku);
		entity.setQuantityOrdered(quantityOrdered);
		entity.setItemTax(itemTax);
		entity.setItemPrice(itemPrice);
		entity.setOrderMoney(orderMoney);
		entity.setSalesChannel(salesChannel);
		entity.setTaxes(taxes);
		entity.setPrice(price);
		entity.setOrderAmount(orderAmount);
		entity.setExchangeRate1(exchangeRate1);
		entity.setExchangeRate2(exchangeRate2);
		entity.setLocalDate(localDate);
		entity.setShopName(shopName);
		entity.setProductCode(productCode);
		entity.setProductName(productName);
		entity.setCompanyCode(companyCode);
		entity.setCompanyShortName(companyShortName);
		entity.setOperatorUserId(operatorUserId);
		entity.setOperatorUserName(operatorUserName);
		entity.setOperatorRoleName(operatorRoleName);
		entity.setOperatorOrgName(operatorOrgName);
		entity.setStateYoupin(stateYoupin);
		entity.setStateJingpin(stateJingpin);
		entity.setStateNoRule(stateNoRule);
		entity.setFulfillmentChannel(fulfillmentChannel);
		entity.setStatus(status);
		return entity;
	}
}